package cn.liontalk.web;

import cn.liontalk.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-03-31 19:47
 **/
@RestController
@RequestMapping(value = "/ribbon")
public class RibbonController {


    @Autowired
    private RibbonService ribbonService;

    @GetMapping(value = "/demo")
    public String hi(@RequestParam String name) {
        return ribbonService.testRibbon( name );
    }

}
